#ifndef __CLI_H__
#define __CLI_H__
#include"tcpClient.h"
#include"ipAddressPort.h"

#include<memory>
#include<mutex>



class Cli
{
public:
static std::shared_ptr<Cli> GetInstance(std::string,size_t);
private:
Cli()=delete;
Cli(std::string ,size_t);
Cli(const Cli&)=delete;
Cli& operator=(const Cli&)=delete;
public:
 void LsFile(std::string);
 void GetFile(std::string,std::string);
 void UpFile(std::string,std::string);
 void DeleteFile(std::string,std::string);
private:
  static std::shared_ptr<Cli> cliInstance_;
  TcpClient cli_;
  static std::mutex mutex_;
};
#endif